package com.cspg.design.widget;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;

import com.cspg.design.R;

public class CSPGProgressBar extends ProgressDialog {

    public CSPGProgressBar(Context context, int theme) {
        super(context, theme);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_cspg_progress_dialog);

    }

    public static CSPGProgressBar show(Context context) {
        CSPGProgressBar jdryProgressBar = new CSPGProgressBar(context, R.style.cspgProgressbar);
        jdryProgressBar.setCanceledOnTouchOutside(false);
        jdryProgressBar.show();
        return jdryProgressBar;
    }
}